package com.hp.common.access.model;

import java.io.Serializable;
import java.util.List;

/**
 * 权限资源模型
 * @author mcfan
 */
public class SysAccessModel implements Serializable {

    public static final long serialVersionUID = 1L;

    /**
     * 主键,这里和access一致
     */
    private String id;
    /**
     * 权限标识,与请求url对应,/sys/user/save===>sys:user:save
     */
    private String access;
    /**
     * 请求url，与RequestMapper
     */
    private String uri;
    /**
     * 权限名称
     */
    private String name;
    /**
     * 权限备注
     */
    private String remark;
    /**
     * 排序,暂时不实现
     */
    private int sort;
    /**
     * 子权限
     */
    private List<SysAccessModel> children;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAccess() {
        return access;
    }

    public void setAccess(String access) {
        this.access = access;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public List<SysAccessModel> getChildren() {
        return children;
    }

    public void setChildren(List<SysAccessModel> children) {
        this.children = children;
    }
}
